package com.share.thread;

/**
 * 创建方式1
 * @author Johnny Tam
 *
 */
public class PrimeThread extends Thread {
    long minPrime;
    
    PrimeThread() {
    	
    }
    PrimeThread(long minPrime) {
        this.minPrime = minPrime;
    }

    public void run() {
         System.out.println("开始执行PrimeThread中的run方法" );
         System.out.println("线程名字： " + Thread.currentThread().getName() 
        		 + "  " + Thread.currentThread().getId()
        		 + "  " + Thread.currentThread().getPriority());
         
         for (int i = 0; i < 100; i++) {
        	 System.out.print("Thread " + i + "\t");
        	 if (i % 10 == 0) {
        		 System.out.println();
        	 }
         }
    }
    
}
